<template>
  <el-button
    plain
    @click="open">
    可自动关闭
  </el-button>
</template>

<script>
// import {getJava} from "../service/reqService"
import axios from "axios"
const  getJava = () => {
    axios.get('http://127.0.0.1:8080/jobs/java')
        .then((data) => {
            console.log(data)
        })
        .catch((err) => {
            console.log(err)
        });
        }
  export default {
    name:"nf",
    methods: {
      
      open() {
        getJava();
        // const h = this.$createElement;
        // this.$notify({
        //   title: '标题名称',
        //   message: h('i', { style: 'color: teal'}, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案')
        // });
      },

      open2() {
        this.$notify({
          title: '提示',
          message: '这是一条不会自动关闭的消息',
          duration: 0
        });
      }
    }
  }
</script>
